﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.*"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="baseURL" value="${base}" />
<c:set var="ctx" value="${base}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8,9,10"/>
<title>社区服务站门户首页</title>

<link href="${ctx}/css/adm.css" rel="stylesheet" type="text/css" />
<script src="${baseURL}/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery-latest.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery.layout-latest.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery.tree.js"></script>
<script type="text/javascript" src="${ctx}/js/calendar.js"></script>
<script src="${baseURL}/js/layer/layer.min.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$(function() {
			$('#menu_ul').tree({
				expanded : 'li'
			});
		});
		$('body').layout({
			applyDefaultStyles : false,//应用默认样式  
			scrollToBookmarkOnLoad : false,//页加载时滚动到标签  
			showOverflowOnHover : false,//鼠标移过显示被隐藏的，只在禁用滚动条时用。  
			north__closable : false,//可以被关闭  
			north__resizable : false,//可以改变大小  
			spacing_open : 0,
			north : {
				size : 121
			},
			south : {
				size : 30
			}
		});
		
		//菜单点击改变背景色
		$("li[class='black']").click(function(){
			$("li").removeClass("menuSelected");
			$(this).addClass("menuSelected");
		});
	}); 
	//设置当前路径
	function setLocation(obj){
		$('#curLocation').html($(obj).text());
	}
</script>
</head>

<body>
	<div class="ui-layout-center">
		<iframe name="main"
			style="height: 100%; width: 100%; border: 0px solid"
			src="about:blank"></iframe>
	</div>
	<div class="ui-layout-north">
		<div class="header">
			<div class="w wbg">
				<div class="logo"></div>
				<div id='logo-title'>
					<span>格云社区服务站运营系统</span>
				</div>
			</div>
		</div>
		<div class="welcomebg">
			<div id="welcomeinfo" class='float-left'>
				<span class='welcomespan'>&nbsp;&nbsp;&nbsp;&nbsp;当前位置：<span
					id="curLocation">桌面</span> &nbsp;&nbsp;&nbsp;&nbsp;
				</span>

			</div>
			<div id="logout" class='float-right'>
				<a href="${ctx}/companyAdmin/logout" style="text-decoration: none;padding-left:20px;margin-right:30px">
					<span class='welcomespan'>退出</span>
				</a>
			</div>
			<div id="location" class='float-right'>
				<span class='welcomespan'>&nbsp;&nbsp;&nbsp;&nbsp;${sessionScope.company.companyName}：${sessionScope.companyUser.username}，欢迎您&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="${ctx}/companyAdmin/toUpdatePW" target="main"><img
						src="${baseURL}/images/edit.png" width="16" height="16" border="0"
						valign="middle" />修改密码</a>&nbsp;&nbsp;&nbsp;&nbsp;
				</span>
			</div>
			<div class='clear-both'></div>
		</div>
	</div>
	<div class="ui-layout-west" style="overflow: auto">
		<div id="menu" class='float-left'>
			<ul id="menu_ul" class="tree">
					<li><div class='menuicon8'></div><a class='white' onclick="setLocation(this);">常规管理</a>
						<ul class="tree">
							 <c:if test="${sessionScope.companyAclArray[0]=='1'}">
							<li class='black'  onclick="setLocation(this);" ><a href="${ctx}/companyAdmin/companyListUser?p=1"
								target="main" class='black'>用户管理</a></li>
							</c:if>
						</ul>
					</li>
					<li><div class='menuicon9'></div><a class='white' onclick="setLocation(this);">订单管理</a>
						<ul class="tree">
						<li class='black' onclick="setLocation(this);"><a href="${ctx}/companyAdmin/readylistOrder?status=2"
								target="main" class='black'>配货清单</a></li>
							<!-- <c:if test="${sessionScope.companyAclArray[12]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/companyAdmin/listOrderNew?status=2"
								target="main" class='black'>当期订单</a></li>
							</c:if> --> 
						 <c:if test="${sessionScope.companyAclArray[2]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/companyAdmin/listOrder"
								target="main" class='black'>接收订单</a></li>
							</c:if>
							 <c:if test="${sessionScope.companyAclArray[3]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/companyAdmin/listOrderOld?status=3"
								class='black' target="main">所有订单</a></li>
							</c:if>
							 <c:if test="${sessionScope.companyAclArray[15]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/companyAdmin/testPushMsgToOne"
								class='black' target="main">快递通知</a></li>
							</c:if>
						</ul>
					</li>
					<li><div class='menuicon9'></div><a class='white' onclick="setLocation(this);">社区服务</a>
						<ul class="tree">
							<c:if test="${sessionScope.companyAclArray[13]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/companyAdmin/listOrderServer"
								class='black' target="main">服务工单</a></li>
							</c:if>
						<!-- <c:if test="${sessionScope.companyAclArray[14]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/companyAdmin/listServiceRemark"
								class='black' target="main">服务说明</a></li>
							</c:if> -->	
							 <c:if test="${sessionScope.companyAclArray[6]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/communityService/preCommunityService"
								class='black' target="main">服务分类</a></li>
							</c:if>
							<c:if test="${sessionScope.companyAclArray[7]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/communityServiceMange/listCommunityServiceMange"
								class='black' target="main">服务管理</a></li>
							</c:if>
							<c:if test="${sessionScope.companyAclArray[14]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/companyAdmin/printSmallBillList"
								class='black' target="main">小票打印</a></li>
							</c:if>
						</ul>
					</li>
					<li><div class='menuicon9'></div><a class='white' onclick="setLocation(this);">业主服务</a>
						<ul class="tree">
							<c:if test="${sessionScope.companyAclArray[1]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/companyAdmin/toShopCard"
								target="main" class='black'>代下订单</a></li>
							</c:if>
							<c:if test="${sessionScope.companyAclArray[4]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/companyAdmin/toReg"
								target="main" class='black'>代为注册</a></li>
							</c:if>
							<c:if test="${sessionScope.companyAclArray[5]=='1'}">
							<li class='black' onclick="setLocation(this);">
							<c:if test="${sessionScope.community.communityType==2}">
							<a href="${ctx}/companyAdmin/listSchoolUser"
								class='black' target="main">业主信息</a>
								</c:if>
							<c:if test="${sessionScope.community.communityType!=2}">
							<a href="${ctx}/companyAdmin/listUser"
								class='black' target="main">业主信息</a>
								</c:if>
							</li>
							</c:if>
						</ul>
					</li>
					<li><div class='menuicon8'></div><a class='white' onclick="setLocation(this);">交流空间</a>
						<ul class="tree">
							  <c:if test="${sessionScope.companyAclArray[9]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/forumO2C/listTopic"
								target="main" class='black'>运营商沟通</a></li>
							</c:if>
							 <c:if test="${sessionScope.companyAclArray[10]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/forumO2S/listTopic"
								target="main" class='black'>供货商沟通</a></li>
							</c:if>
							 <c:if test="${sessionScope.companyAclArray[11]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/forumC2U/listTopic"
								target="main" class='black'>业主沟通</a></li>
							</c:if>
						</ul>
					</li>
					<li><div class='menuicon8'></div><a class='white' onclick="setLocation(this);">财务管理</a>
						<ul class="tree">
							  <c:if test="${sessionScope.companyAclArray[8]=='1'}">
							<li class='black' onclick="setLocation(this);"><a href="${ctx}/caiwu/listAccount"
								target="main" class='black'>财务收支情况</a></li>
							</c:if>
						</ul>
					</li>
			</ul>
		</div>
	</div>

	<div class="ui-layout-south">
		<p class="version">@2000-2014 天津格云电子商务有限公司 版权所有<br/>
		<a href="http://www.miitbeian.gov.cn/" target="_blank">津ICP备14005664号</a></p>
	</div>

</body>
</html>